package com.ems.service;

import com.ems.entity.TProduct;
import com.ems.entity.TRoler;
import com.ems.entity.TUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ems.entity.TUserRole;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZZH
 * @since 2022-06-27
 */
public interface TUserService extends IService<TUser>{

    //增加数据
    Boolean add(TUser tUser);

    //删除数据
    Boolean delete(String userName);

    //修改数据
    Boolean update(TUser tUser);

    //查找数据(单）
    TUser findOne(String userName);

    //查找数据(全)
    List<TUser> findAll();

    //登录获取用户名和密码
    TUser login(String userName,String password);

    //注册
    void register(TUser tUser);

    //注册验证
    TUser registerTest(String userName);
}
